/*
 * @Description: 表格混入
 * @Author: huacong
 * @Date: 2020-11-10 21:34:34
 * @LastEditTime: 2020-11-10 21:43:12
 * @LastEditors: huacong
 */

export default {
  mounted () {
    this.heightFn()
  },
  methods: {
    heightFn () {
      const tableDom = document.getElementById('tableInnerWrapper')
      if (tableDom) {
        const domHeight = document.body.clientHeight
        console.log(domHeight, tableDom.offsetTop)
        tableDom.style.cssText = 'min-height: ' + (domHeight - tableDom.offsetTop - 10) + 'px'
        // tableDom.style['min-height'] = (domHeight - tableDom.offsetTop - 10) + 'px'
      }
    }
  }
}
